package main

import (
	"fmt"
)

func main() {
	str := "go is a beautiful language"
	fmt.Printf("The length of str is %d\n", len(str))
	for pos, char := range str { //char 始终为集合中对应索引的值拷贝
		fmt.Printf("Character on position %d is: %c \n", pos, char)
	}
	fmt.Println()
}
